When the SmartVCP is used with the Infinity USB Smart, the default frequency and resetpolarity is chosen when installing the SmartVCP module. However it is possible to configure the SmartVCP module on-the-fly through the serial port.

If the command-mode is not used to configure the SmartVCP it will default to the specific module installed. For instance 3.58MHz phoenix mode.


The interface for controlling frequency, reset polarity and protocol is described below.

The SmartVCP module functions as a normal phoenix / smartmouse interface when the serial port is configured for 7 or 8 databits. When configuring the serialport for use with less than 7 databits (0..6 databits) the port is configured for command-mode.

Data (normal) mode:
Configure serialport for 7-8 databits

Command mode:
Configure serialport for 0-6 databits
Once the port is in command-mode, data written to the device will not be transmitted to the smartcard it will only be used to configure the device, and the changes will only be valid until the device is reset or power-cycled.



Settings:

1. (Reserved for future use)

2. Set frequency command (3 bytes): 0x02,<FRQ_H>,<FRQ_L>
Command = 0x02
<FRQ_H> = Highbyte of the frequency
<FRQ_L> = Lowbyte of the frequency
For 3.579MHz, specify a value of '3579' -> <0x0D>,<0xFB>
For 6.000MHz, specify a value of '6000' -> <0x17>,<0x70>

3. (Reserved for future use)

4. Set protocol command  (2 bytes): 0x04,<prototol>
Command = 0x04
<protocol> = Byte specifying which protocol to use
<0x00> : Supress echo (bytes transmitted to card are not echoed)
<0x01> : Normal mode (bytes transmitted to card are echoed)

5. Set inversion  (2 bytes): 0x05,<inversion>
Command = 0x05
<inversion> = Byte specifying if inversion should be used
<0x00> : Off (normal mode)
<0x01> : On


Example:

To configure the SmartVCP for 3.58MHz phoenix mode, in normal operation:
1. Open the serialport with 6 databits
2. Send <0x02><0x0D><0xFB> to configure frequency
3. Send <0x04><0x01> to configure the default protocol
4. Send <0x05><0x00> to configure normal inversion
